package com.example.web.webauth.exception;

import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * Created by YangGang on 2021/12/14 9:13。
 */
public class MyOAuth2Exception extends OAuth2Exception {
    public MyOAuth2Exception(String msg, Throwable t) {
        super(msg, t);
    }

    public String getOAuth2ErrorCode() {
        return super.getMessage();
    }

    public int getHttpErrorCode() {
        return super.getHttpErrorCode();
    }
}
